{% extends "base.html" %}
{% block mycontent %}


    <div class="container">
        <div class="row">
            <div class="col-lg-6 col-lg-offset-3">
                <h4 class="text-center">登录</h4>
                <hr>
            </div>
            <div class="col-lg-6 col-lg-offset-3">
                {% if aim_url %}
                    <a class="btn btn-primary" href="/login?aim_url={{ aim_url }}" style="width:100%">
                        使用账号密码登录
                    </a>
                {% else %}
                    <a class="btn btn-primary" href="/login" style="width:100%">
                        使用账号密码登录
                    </a>
                {% endif %}
            </div>

            <div class="col-lg-6 col-lg-offset-3" style="margin-top: 30px;">
                {% if aim_url %}
                    <a class="btn btn-success" style="width:100%"
                       href="https://open.weixin.qq.com/connect/oauth2/authorize?appid={{ corpid }}&redirect_uri={{ re_url }}?aim_url={{ aim_url }}&response_type=code&scope=SCOPE&state=STATE#wechat_redirect">
                        使用微信企业号登录
                    </a>
                {% else %}
                    <a class="btn btn-success" style="width:100%"
                       href="https://open.weixin.qq.com/connect/oauth2/authorize?appid={{ corpid }}&redirect_uri={{ re_url }}&response_type=code&scope=SCOPE&state=STATE#wechat_redirect">
                        使用微信企业号登录
                    </a>
                {% endif %}

            </div>
        </div>
    </div>
{% endblock %}